package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwTdmMapper;
import com.tjmc.tiomscore.model.TranPtnHwTdm;
import com.tjmc.tiomsresource.parser.CMTdmParser;
import com.tjmc.tiomsresource.service.CMTdmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Service("cmTdmService")
public class CMTdmServiceImpl extends CMSuperServiceImpl<TranPtnHwTdm> implements CMTdmService {

    @Autowired
    private CMTdmParser cmTdmParser;
    @Autowired
    private TranPtnHwTdmMapper tranPtnHwTdmMapper;

    @Override
    public CMTdmParser getParser() {
        return cmTdmParser;
    }

    @Override
    public TranPtnHwTdmMapper getMapper() {
        return tranPtnHwTdmMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "TDM");
    }
}
